<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <script type="text/javascript" src="../js/vue.js"></script>
  <title>非单文件组件</title>
</head>
<body>
  <div id="root">
    <Tit></Tit>
    <hr>
  </div>
  <script type="text/javascript">
    const Hello = {
      template:`
				<div><h3>你好 世界 !!!</h3></div>
			`
    }
    const Tit = Vue.extend(
      {
      data() {
        return {
          con:"Hello Vue !!!"
        }
      },
      components:{
        Hello
      },
      template:`
				<div>
					<h3>{{con}}</h3>
          <Hello></Hello>
        </div>
			`
    }
    )

    const vm = new Vue({
      el:'#root', 
      components:{
        Tit
      },
    }) 

    console.log(Tit.prototype.__proto__ === Vue.prototype);
  </script>
  <script type="text/javascript">
    function Persion(name) {
      this.name = name
    }
    const student = new Persion('张三')
    console.log(student.__proto__); // 隐式原型对象
    console.log(Persion.prototype); // 显式原型对象
  </script>
</body>
</html>